package com.tfleo.mealssenger.object;

import com.tfleo.mealssenger.Main;


public class FriendSelection {	
	public static final String IMAGE_PATH = Main.SERVER_URL + "img/user/";
	public final int id;
	public final String name;
	public final String imageUrl;
	private float latitude;
	private float longitude;
	
	private boolean selected = false;
	
	public FriendSelection(int id, String name, String imageUrl) {
		this.id = id;
		this.name = name;
		this.imageUrl = IMAGE_PATH + imageUrl;
	}
	
	public boolean isSelected() {
		return selected;
	}
	
	public void setSelected() {
		selected = true;
	}
	
	public void setNotSelected() {
		selected = false;
	}
	
	public void setLocation(float latitude, float longitude) {
		this.latitude = latitude;
		this.longitude = longitude;
	}
	
	public float getLatitude() {
		return latitude;
	}
	
	public float getLongitude() {
		return longitude;
	}
}
